package com.firewolf.spring;

import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.firewolf.spring.entities.DataSourceInfo;

/**
 * 
 * @author lx
 *
 */
public class MainDriver {
	
	private ApplicationContext ctx = null;
	
	/**
	 * 初始化
	 */
	@Before
	public void init(){
		ctx = new ClassPathXmlApplicationContext("spring.xml");
	}
	
	@Test
	public void testExternalFile(){
		DataSourceInfo ds = ctx.getBean(DataSourceInfo.class);
		System.out.println(ds);
	}
	
}                                                                                     
